package com.suep.data_analysis.mapper;
import com.suep.data_analysis.dto.AgentDetailDto;
import com.suep.data_analysis.model.Agent;
import com.suep.data_analysis.model.AgentAttribute;
import com.suep.data_analysis.model.AgentSkills;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(uses = {AgentMapper.class, AgentAttributeMapper.class, AgentSkillsMapper.class})
public interface AgentDetailMapper {
    AgentDetailMapper INSTANCE = Mappers.getMapper(AgentDetailMapper.class);

    @Mapping(source = "agent", target = "agent")
    @Mapping(source = "attribute", target = "attribute")
    @Mapping(source = "skills", target = "skills")
    AgentDetailDto toAgentDetailDto(Agent agent, AgentAttribute attribute, List<AgentSkills> skills);
}